package com.bjpowernode.crm.settings.service.impl;

import com.bjpowernode.crm.settings.domain.DicType;
import com.bjpowernode.crm.settings.mapper.DicTypeMapper;
import com.bjpowernode.crm.settings.service.DicTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName : DicTypeServiceImpl
 * @Author : 司猫子
 * @Date: 2020/12/25 17:26
 */
@Service
public class DicTypeServiceImpl implements DicTypeService {
    @Autowired
    private DicTypeMapper dicTypeMapper;
    public List<DicType> selectAllDicTypes() {
        return dicTypeMapper.selectAllDicTypes();
    }

    public int insertDicType(DicType dicType) {
        return dicTypeMapper.insertDicType(dicType);
    }

    public DicType selectDicTypeByCode(String code) {
        return dicTypeMapper.selectDicTypeByCode(code);
    }

    public int updateDicType(DicType dicType) {
        return dicTypeMapper.updateDicType(dicType);
    }

    public int deleteDicTypeByCodes(String[] codes) {
        return dicTypeMapper.deleteDicTypeByCodes(codes);
    }
}
